package com.iwat.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.iwat.annotation.Dict;
import lombok.Data;

import java.util.Date;

/**
 * @Author wangweiqiang
 * @Classname User
 * @Date 2023/9/22 10:05
 * @Description
 */
@Data
@TableName("t_user")
public class User {

    @TableId
    private Integer id;

    private String userName;

    @Dict(dictCode = "sex", dictTable = "", dictText = "")
    private Integer sex;

    @TableField(exist = false)
    private String sexDict;

    private String note;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
